﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class SachBus
    Public Shared Function LayBang() As Table(Of Sach)
        Return SachDao.LayBang()
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of Sach)
        Dim lst As IEnumerable(Of Sach)
        lst = SachDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LaySach(ByVal m As Integer) As Sach
        Return SachDao.LaySach(m)
    End Function

    Public Shared Function LayBang_Tracuu() As Object
        Return SachDao.LayBang_Tracuu()
    End Function

    Public Shared Function LayBang_Tracuu_Theotuasach(ByVal tua As String) As Object
        Return SachDao.LayBang_Tracuu_Theotuasach(tua)
    End Function

    Public Shared Function LayBang_Tracuu_Theotacgia(ByVal tg As String) As Object
        Return SachDao.LayBang_Tracuu_Theotacgia(tg)
    End Function

    Public Shared Function LayBang_Tracuu_Theomasach(ByVal m As Integer) As Object
        Return SachDao.LayBang_Tracuu_Theomasach(m)
    End Function

    Public Shared Sub Them(ByVal t As Sach)
        SachDao.Them(t)
    End Sub

    Public Shared Sub ThemSach(ByVal s As Sach, ByVal nc As Kho)
        SachDao.ThemSach(s, nc)
    End Sub

    Public Shared Sub CapNhat(ByVal sach As Sach)
        SachDao.CapNhat(sach)
    End Sub
    Public Shared Sub Xoa(ByVal m As Integer)
        SachDao.Xoa(m)
    End Sub
End Class
